package com.supermarket.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.supermarket.dao.OutStockDao;
import com.supermarket.model.OutStock;
import com.supermarket.service.IOutStockFunction;
@Service
public class OutStockFunctionImpl implements IOutStockFunction {

	OutStockDao osd;
	
	
	public OutStockDao getOsd() {
		return osd;
	}

	@Autowired
	public void setOsd(OutStockDao osd) {
		this.osd = osd;
	}

	public List<OutStock> selectOutStockByPagination() {
		// TODO Auto-generated method stub
		return osd.selectOutStockByPagination();
	}

	public void deleteById(Integer id) {
		// TODO Auto-generated method stub
		osd.deleteById(id);

	}

	public void addOutStock(OutStock outStock) {
		// TODO Auto-generated method stub
		osd.addOutStock(outStock);

	}

	public List<OutStock> queryOutStock(String keyword) {
		// TODO Auto-generated method stub
		return osd.queryOutStock(keyword);
	}

}
